package com.powernobug.servlet;

import com.powernobug.bean.vo.BaseRespVo;
import com.powernobug.bean.vo.PageVo;
import com.powernobug.service.AdminRoleService;
import com.powernobug.service.impl.AdminRoleServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;

/**
 * @Author: 肖云戈
 * @CreateTime: 2024-08-23
 * @Description:
 */
@WebServlet("/role/*")
public class RoleServlet extends CommonServlet{
    private static AdminRoleService adminRoleService = new AdminRoleServiceImpl();

    public BaseRespVo options(HttpServletRequest req) {
        PageVo pageVo = adminRoleService.getAdminByPage();
        return BaseRespVo.okList(pageVo);
    }
}
